<?php    
$objRevisorTO = $this->vars['objRevisorTO'];
$filas_revisor_paper = $this->vars['data_revisor_paper']['list_revisor_paper'];
$filas_paper = $this->vars['data_paper']['list_paper'];
?>

<h1>Revisor Detalle</h1>

<table width="95%" border="1" class="login" cellpadding="5" cellspacing="0">
    <tr>
        <th>Revisor</th>
        <th>E-mail</th>
        <th>Institución</th>
        <th>Cargo</th>
    </tr>
    <tr>
        <td><?php echo $objRevisorTO->getNombre();?></td>
        <td><?php echo $objRevisorTO->getEmail1();?></td>
        <td><?php echo $objRevisorTO->getInstitucion();?></td>
        <td><?php echo $objRevisorTO->getCargo();?></td>
    </tr>
</table>

<h1>Papers Asignados:</h1>

<table width="95%" border="1" class="login" cellpadding="5" cellspacing="0">
    <tr>
        <th>Tr</th>
        <th>Paper</th>
        <th>Archivos</th>
    </tr>
    <?php
    foreach($filas_revisor_paper as $fila_revisor_paper) {
        foreach($filas_paper as $fila_paper) {
            if($fila_revisor_paper->getIdPaper()==$fila_paper->getIdPaper()) {
                echo "<tr>";
                echo "<td align='center'>".$fila_paper->getIdTrack()."</td>";
                echo "<td align='justify'>".$fila_paper->getTitulo()."</td>";
                echo "<td align='center'><a href='documents/papers/".$fila_paper->getUrlPaper()."'><img src='media/logo_word.gif'/></a></td>";
                echo "</tr>";
            }
        }
    }
    ?>
</table>

<h1>Envío de información personal</h1>
<form name="enviarDataForm" method="post">
    <p>Si desa enviar sus datos de acceso al revisor por favor clic aquí &nbsp;&nbsp;<input type="button" value="Enviar" onclick="enviarData(<?php echo $objRevisorTO->getIdRevisor();?>)"/><span id="message_revisor"></span></p>
    <input type="hidden" value="" name="id_revisor"/>
</form>
<br/>